package exp5;

public class TimeCounter {
	 static void startCount(int begin) {
		while(begin>0) {
			try {
				Thread.sleep(1000);
				if(begin==0) {
					break;
				}
				System.out.print(begin--+" ");
			}catch(InterruptedException e){
				e.printStackTrace();
			}
	        
		}
	}
	public static void main(String[] args) {
		startCount(10);
	}
}
